package com.xiumu.pojo.blog.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xiumu.common.core.entity.BaseEntity;
import lombok.Data;

/**
 * 文章与标签的关联表
 *
 * @author XiuMu
 * @Date 2023-01-30 13:58:57
 */
@Data
@TableName("blog_post_tag")
public class BlogPostTag extends BaseEntity {
    /**
     * 文章ID
     */
    private Long postId;
    /**
     * 标签ID
     */
    private Long tagId;

    public BlogPostTag() {
    }

    public BlogPostTag(Long postId, Long tagId) {
        this.postId = postId;
        this.tagId = tagId;
    }
}
